\(\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx\) [1276]
Optimal result
Integrand size = 45, antiderivative size = 181 \[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\frac {(2 B-C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sqrt {2} (A-B+C) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}
\]
[Out]
(2*B-C)*arcsinh(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d/a^(1/2)+(A-B+C)
*arctanh(1/2*sin(d*x+c)*a^(1/2)*sec(d*x+c)^(1/2)*2^(1/2)/(a+a*sec(d*x+c))^(1/2))*2^(1/2)*cos(d*x+c)^(1/2)*sec(
d*x+c)^(1/2)/d/a^(1/2)+C*sin(d*x+c)/d/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2)
Rubi [A] (verified)
Time = 0.67 (sec) , antiderivative size = 181, normalized size of antiderivative = 1.00, number of
steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {4350, 4173, 4108, 3893, 212,
3886, 221} \[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {2} (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {arctanh}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {(2 B-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}
\]
[In]
Int[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
((2*B - C)*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]])/(Sq
rt[a]*d) + (Sqrt[2]*(A - B + C)*ArcTanh[(Sqrt[a]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a + a*Sec[c +
d*x]])]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]])/(Sqrt[a]*d) + (C*Sin[c + d*x])/(d*Cos[c + d*x]^(3/2)*Sqrt[a + a
*Sec[c + d*x]])
Rule 212
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rule 221
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
x] && GtQ[a, 0] && PosQ[b]
Rule 3886
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*(a/(b
*f))*Sqrt[a*(d/b)], Subst[Int[1/Sqrt[1 + x^2/a], x], x, b*(Cot[e + f*x]/Sqrt[a + b*Csc[e + f*x]])], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[a*(d/b), 0]
Rule 3893
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*b*(d/
(a*f)), Subst[Int[1/(2*b - d*x^2), x], x, b*(Cot[e + f*x]/(Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]]))], x
] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0]
Rule 4108
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> Dist[(A*b - a*B)/b, Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n, x], x] + Dist[B
/b, Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n, x], x] /; FreeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A
*b - a*B, 0] && EqQ[a^2 - b^2, 0]
Rule 4173
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^
(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(
(d*Csc[e + f*x])^n/(f*(m + n + 1))), x] + Dist[1/(b*(m + n + 1)), Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^
n*Simp[A*b*(m + n + 1) + b*C*n + (a*C*m + b*B*(m + n + 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A
, B, C, m, n}, x] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(-1)] && !LtQ[n, -2^(-1)] && NeQ[m + n + 1, 0]
Rule 4350
Int[(cos[(a_.) + (b_.)*(x_)]*(c_.))^(m_.)*(u_), x_Symbol] :> Dist[(c*Cos[a + b*x])^m*(c*Sec[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Sec[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSecantIntegrandQ[
u, x]
Rubi steps \begin{align*}
\text {integral}& = \left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx \\ & = \frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (\frac {1}{2} a (2 A+C)+\frac {1}{2} a (2 B-C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{a} \\ & = \frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left ((2 B-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx}{2 a}+\left ((A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx \\ & = \frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {\left ((2 B-C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a d}-\frac {\left (2 (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {(2 B-C) \text {arcsinh}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sqrt {2} (A-B+C) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \\
\end{align*}
Mathematica [A] (verified)
Time = 1.49 (sec) , antiderivative size = 160, normalized size of antiderivative = 0.88
\[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\frac {\sqrt {\cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \left (C \arcsin \left (\sqrt {1-\sec (c+d x)}\right )-2 (B-C) \arcsin \left (\sqrt {\sec (c+d x)}\right )-\sqrt {2} (A-B+C) \arctan \left (\frac {\sqrt {2} \sqrt {\sec (c+d x)}}{\sqrt {1-\sec (c+d x)}}\right )+C \sqrt {-((-1+\sec (c+d x)) \sec (c+d x))}\right ) \sin (c+d x)}{d \sqrt {1-\sec (c+d x)} \sqrt {a (1+\sec (c+d x))}}
\]
[In]
Integrate[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
(Sqrt[Cos[c + d*x]]*Sec[c + d*x]^(3/2)*(C*ArcSin[Sqrt[1 - Sec[c + d*x]]] - 2*(B - C)*ArcSin[Sqrt[Sec[c + d*x]]
] - Sqrt[2]*(A - B + C)*ArcTan[(Sqrt[2]*Sqrt[Sec[c + d*x]])/Sqrt[1 - Sec[c + d*x]]] + C*Sqrt[-((-1 + Sec[c + d
*x])*Sec[c + d*x])])*Sin[c + d*x])/(d*Sqrt[1 - Sec[c + d*x]]*Sqrt[a*(1 + Sec[c + d*x])])
Maple [B] (verified)
Leaf count of result is larger than twice the leaf count of optimal. \(424\) vs. \(2(152)=304\).
Time = 0.86 (sec) , antiderivative size = 425, normalized size of antiderivative = 2.35
| | |
method | result | size |
| | |
default |
\(-\frac {\sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (2 A \cos \left (d x +c \right ) \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )-2 B \sqrt {2}\, \cos \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )+2 C \cos \left (d x +c \right ) \sqrt {2}\, \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {2}}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )+2 B \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right ) \cos \left (d x +c \right )+2 B \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right ) \cos \left (d x +c \right )-C \cos \left (d x +c \right ) \arctan \left (\frac {-\cos \left (d x +c \right )+\sin \left (d x +c \right )-1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )-C \cos \left (d x +c \right ) \arctan \left (\frac {\cos \left (d x +c \right )+\sin \left (d x +c \right )+1}{2 \left (1+\cos \left (d x +c \right )\right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}}\right )-2 C \sin \left (d x +c \right ) \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}\right )}{2 d \left (1+\cos \left (d x +c \right )\right ) a \sqrt {-\frac {1}{1+\cos \left (d x +c \right )}}\, \sqrt {\cos \left (d x +c \right )}}\) |
\(425\) |
| | |
|
|
|
[In]
int((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x,method=_RETURNVERBOSE)
[Out]
-1/2/d*(a*(1+sec(d*x+c)))^(1/2)*(2*A*cos(d*x+c)*2^(1/2)*arctan(1/2*sin(d*x+c)*2^(1/2)/(1+cos(d*x+c))/(-1/(1+co
s(d*x+c)))^(1/2))-2*B*2^(1/2)*cos(d*x+c)*arctan(1/2*sin(d*x+c)*2^(1/2)/(1+cos(d*x+c))/(-1/(1+cos(d*x+c)))^(1/2
))+2*C*cos(d*x+c)*2^(1/2)*arctan(1/2*sin(d*x+c)*2^(1/2)/(1+cos(d*x+c))/(-1/(1+cos(d*x+c)))^(1/2))+2*B*arctan(1
/2*(-cos(d*x+c)+sin(d*x+c)-1)/(1+cos(d*x+c))/(-1/(1+cos(d*x+c)))^(1/2))*cos(d*x+c)+2*B*arctan(1/2*(cos(d*x+c)+
sin(d*x+c)+1)/(1+cos(d*x+c))/(-1/(1+cos(d*x+c)))^(1/2))*cos(d*x+c)-C*cos(d*x+c)*arctan(1/2*(-cos(d*x+c)+sin(d*
x+c)-1)/(1+cos(d*x+c))/(-1/(1+cos(d*x+c)))^(1/2))-C*cos(d*x+c)*arctan(1/2*(cos(d*x+c)+sin(d*x+c)+1)/(1+cos(d*x
+c))/(-1/(1+cos(d*x+c)))^(1/2))-2*C*sin(d*x+c)*(-1/(1+cos(d*x+c)))^(1/2))/(1+cos(d*x+c))/a/(-1/(1+cos(d*x+c)))
^(1/2)/cos(d*x+c)^(1/2)
Fricas [A] (verification not implemented)
none
Time = 0.35 (sec) , antiderivative size = 580, normalized size of antiderivative = 3.20
\[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\left [\frac {4 \, C \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - {\left ({\left (2 \, B - C\right )} \cos \left (d x + c\right )^{2} + {\left (2 \, B - C\right )} \cos \left (d x + c\right )\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} + 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {2 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right )^{2} + {\left (A - B + C\right )} a \cos \left (d x + c\right )\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{4 \, {\left (a d \cos \left (d x + c\right )^{2} + a d \cos \left (d x + c\right )\right )}}, -\frac {2 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right )^{2} + {\left (A - B + C\right )} a \cos \left (d x + c\right )\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - 2 \, C \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - {\left ({\left (2 \, B - C\right )} \cos \left (d x + c\right )^{2} + {\left (2 \, B - C\right )} \cos \left (d x + c\right )\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{2 \, {\left (a d \cos \left (d x + c\right )^{2} + a d \cos \left (d x + c\right )\right )}}\right ]
\]
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")
[Out]
[1/4*(4*C*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) - ((2*B - C)*cos(d*x + c)^2
+ (2*B - C)*cos(d*x + c))*sqrt(a)*log((a*cos(d*x + c)^3 + 4*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*(c
os(d*x + c) - 2)*sqrt(cos(d*x + c))*sin(d*x + c) - 7*a*cos(d*x + c)^2 + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)
) + 2*sqrt(2)*((A - B + C)*a*cos(d*x + c)^2 + (A - B + C)*a*cos(d*x + c))*log(-(cos(d*x + c)^2 - 2*sqrt(2)*sqr
t((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/sqrt(a) - 2*cos(d*x + c) - 3)/(cos(d*x +
c)^2 + 2*cos(d*x + c) + 1))/sqrt(a))/(a*d*cos(d*x + c)^2 + a*d*cos(d*x + c)), -1/2*(2*sqrt(2)*((A - B + C)*a*c
os(d*x + c)^2 + (A - B + C)*a*cos(d*x + c))*sqrt(-1/a)*arctan(sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*
sqrt(-1/a)*sqrt(cos(d*x + c))/sin(d*x + c)) - 2*C*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*s
in(d*x + c) - ((2*B - C)*cos(d*x + c)^2 + (2*B - C)*cos(d*x + c))*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x +
c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)))/(a*d*cos(d*
x + c)^2 + a*d*cos(d*x + c))]
Sympy [F]
\[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\int \frac {A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}}{\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \sqrt {\cos {\left (c + d x \right )}}}\, dx
\]
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)**2)/cos(d*x+c)**(1/2)/(a+a*sec(d*x+c))**(1/2),x)
[Out]
Integral((A + B*sec(c + d*x) + C*sec(c + d*x)**2)/(sqrt(a*(sec(c + d*x) + 1))*sqrt(cos(c + d*x))), x)
Maxima [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 19132 vs. \(2 (152) = 304\).
Time = 0.67 (sec) , antiderivative size = 19132, normalized size of antiderivative = 105.70
\[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\text {Too large to display}
\]
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")
[Out]
1/4*(2*(sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - sqrt(2)*lo
g(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1))*A/sqrt(a) - 2*(sqrt(2)*log(co
s(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d
*x + 3/2*c)))^2 + 2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 1) - sqrt(2)*log(cos(1/3*ar
ctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2
*c)))^2 - 2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 1) - log(2*cos(1/3*arctan2(sin(3/2*
d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + 2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + 2*
sqrt(2)*cos(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 2*sqrt(2)*sin(1/3*arctan2(sin(3/2*d*x +
3/2*c), cos(3/2*d*x + 3/2*c))) + 2) + log(2*cos(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 +
2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + 2*sqrt(2)*cos(1/3*arctan2(sin(3/2*d*x + 3/2
*c), cos(3/2*d*x + 3/2*c))) - 2*sqrt(2)*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 2) - lo
g(2*cos(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 + 2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), c
os(3/2*d*x + 3/2*c)))^2 - 2*sqrt(2)*cos(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 2*sqrt(2)*s
in(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) + 2) + log(2*cos(1/3*arctan2(sin(3/2*d*x + 3/2*c),
cos(3/2*d*x + 3/2*c)))^2 + 2*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c)))^2 - 2*sqrt(2)*cos(1
/3*arctan2(sin(3/2*d*x + 3/2*c), cos(3/2*d*x + 3/2*c))) - 2*sqrt(2)*sin(1/3*arctan2(sin(3/2*d*x + 3/2*c), cos(
3/2*d*x + 3/2*c))) + 2))*B/sqrt(a) + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c)
+ 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/
2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(
2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^4 + (2*sqrt(2)*
log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2
*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(
2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sq
rt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^4 + 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c)^3 + 4*(2*sqrt(2)
*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(
1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c
) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*
sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqr
t(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^3 + ((2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin
(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + l
og(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*
x + 1/2*c) + 2))*cos(d*x + c)^2 + (2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1)
- log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c)
- 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2
*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1
/2*d*x + 1/2*c)*sin(d*x + c) + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1)
+ 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
+ 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(
1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*
cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2
*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2
*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*s
qrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
- 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(
1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(3*d*x + 3*c)^2
+ ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*lo
g(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos
(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*
c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + (2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2
- 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d
*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*si
n(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c) + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2
*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2
- 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*c
os(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/
2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(
2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2
*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1
/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*c
os(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/
2*c) + 2))*cos(2*d*x + 2*c)^2 + 6*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1)
- 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/
2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
+ 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin
(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))
*cos(d*x + c)^2 + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1
) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/
2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(
2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + (2*sqrt(2)*log(cos(1/2*d*x + 1
/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/
2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*s
qrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2
*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(
2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c) + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/
2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2
*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(
1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c
) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*
sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2
*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1
/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(
1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c
) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*
sin(1/2*d*x + 1/2*c) + 2))*sin(3*d*x + 3*c)^2 + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^
2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*
x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2
*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1
/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^
2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*si
n(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 +
(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(c
os(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/
2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c) + 2*(
2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(co
s(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) -
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) -
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos
(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c
)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1
/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^
2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) +
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos
(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(2*d*x + 2*c)^2 + 2*((2*sqrt(2)*log(cos(1/2*d*x +
1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1
/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*
sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*
d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/
2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log
(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x
+ 1/2*c) + 2))*cos(d*x + c)^2 + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d
*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1)
- sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*
d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*c
os(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*
sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sq
rt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*
d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 -
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 + 2*(
(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(c
os(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*si
n(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/
2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^3 + 3*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2
*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2
- 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*
x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2
*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2
*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos
(d*x + c)^2 + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) -
2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
+ log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c)
+ 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2
+ sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x +
1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*si
n(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
- log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c)
- 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*s
in(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1
/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x
+ c)^2 + (2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt
(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/
2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log
(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x
+ 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*s
qrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x +
c) + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(
2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x +
1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x +
1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*
log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos
(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*
c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(2*d*x + 2*c) + 3*(2*sqrt(2)*log(cos(1/2*
d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 +
sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^
2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*si
n(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*
x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
+ log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/
2*d*x + 1/2*c) + 2))*cos(d*x + c) - 4*(sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos(1/2*d*x + 1/2*c
))*sin(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1)
- 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*
d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) +
2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(
1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*
c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)
*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(3*d*x + 3*c) + 2*((2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin
(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 +
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + l
og(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*
x + 1/2*c) + 2))*cos(d*x + c)^3 + 3*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2
*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) +
1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(
1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*
c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)
*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1
/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + ((2*sqrt(2)*l
og(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x +
1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*
c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2
*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqr
t(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x +
1/2*c) + 1) - 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*
c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2
*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x +
1/2*c) + 2))*sin(d*x + c)^2 + 3*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) -
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*
d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) -
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos
(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c
)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) - 4*(sqrt(2)*cos(d*x
+ c)*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos(1/2*d*x + 1/2*c))*sin(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2
+ sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x +
1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2
*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2))*cos(2*d*x + 2*c) + 4*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/
2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - 3*sq
rt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*
c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*
x + c) + 2*((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*s
qrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) +
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d
*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(
1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^3 + 4*sqrt(2)*cos(d*x + c)^2*cos(1/2*d*x
+ 1/2*c) + 8*sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*s
in(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1
/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x
+ c)^2 + (2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt
(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/
2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log
(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x
+ 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*s
qrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2
*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x +
c) + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(
2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x +
1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x +
1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*
x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*
log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x
+ 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos
(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*
c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sq
rt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(2*d*x + 2*c) + ((2*sqrt(2)*log(cos(1/2*d
*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 +
sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
+ 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin
(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x
+ 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2)
+ log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2
*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(
1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c)
+ 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2
*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/
2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c)
+ 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) +
1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*s
in(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c)
+ 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*c
os(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2
*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)
+ 4*sqrt(2)*cos(1/2*d*x + 1/2*c))*sin(3*d*x + 3*c) + 2*((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin
(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2
*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2
)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x +
c)^3 + 4*sqrt(2)*cos(d*x + c)^2*cos(1/2*d*x + 1/2*c) + 8*sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + ((2*sqrt(
2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d
*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - l
og(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*
x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2
*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + 2*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1
/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(
1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)
^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*s
in(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d
*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2
) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1
/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2
*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) +
1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(
1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)
^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*s
in(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d
*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2
))*sin(d*x + c) + 4*sqrt(2)*cos(1/2*d*x + 1/2*c))*sin(2*d*x + 2*c) + 4*(sqrt(2)*cos(d*x + c)^2*cos(1/2*d*x + 1
/2*c) + 2*sqrt(2)*cos(d*x + c)*cos(1/2*d*x + 1/2*c) + sqrt(2)*cos(1/2*d*x + 1/2*c))*sin(d*x + c) + 2*sqrt(2)*l
og(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x +
1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(
1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c
) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*
sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x +
1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqr
t(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*C/((cos(d*x + c)^4 + sin(d*x + c)^4 + (cos(d*
x + c)^2 + sin(d*x + c)^2 + 2*cos(d*x + c) + 1)*cos(3*d*x + 3*c)^2 + (cos(d*x + c)^2 + sin(d*x + c)^2 + 2*cos(
d*x + c) + 1)*cos(2*d*x + 2*c)^2 + 4*cos(d*x + c)^3 + (cos(d*x + c)^2 + sin(d*x + c)^2 + 2*cos(d*x + c) + 1)*s
in(3*d*x + 3*c)^2 + (cos(d*x + c)^2 + sin(d*x + c)^2 + 2*cos(d*x + c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(d*x + c
)^2 + 2*cos(d*x + c) + 1)*sin(d*x + c)^2 + 2*(cos(d*x + c)^3 + (cos(d*x + c) + 1)*sin(d*x + c)^2 + (cos(d*x +
c)^2 + sin(d*x + c)^2 + 2*cos(d*x + c) + 1)*cos(2*d*x + 2*c) + 3*cos(d*x + c)^2 + 3*cos(d*x + c) + 1)*cos(3*d*
x + 3*c) + 2*(cos(d*x + c)^3 + (cos(d*x + c) + 1)*sin(d*x + c)^2 + 3*cos(d*x + c)^2 + 3*cos(d*x + c) + 1)*cos(
2*d*x + 2*c) + 6*cos(d*x + c)^2 + 2*(sin(d*x + c)^3 + (cos(d*x + c)^2 + sin(d*x + c)^2 + 2*cos(d*x + c) + 1)*s
in(2*d*x + 2*c) + (cos(d*x + c)^2 + 2*cos(d*x + c) + 1)*sin(d*x + c))*sin(3*d*x + 3*c) + 2*(sin(d*x + c)^3 + (
cos(d*x + c)^2 + 2*cos(d*x + c) + 1)*sin(d*x + c))*sin(2*d*x + 2*c) + 4*cos(d*x + c) + 1)*sqrt(a)))/d
Giac [F]
\[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\int { \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{\sqrt {a \sec \left (d x + c\right ) + a} \sqrt {\cos \left (d x + c\right )}} \,d x }
\]
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)/(sqrt(a*sec(d*x + c) + a)*sqrt(cos(d*x + c))), x)
Mupad [F(-1)]
Timed out. \[
\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx=\int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x
\]
[In]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2)),x)
[Out]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2)), x)